package com.ibm.cloud.banking.customer.repository;

import com.ibm.cloud.banking.customer.entity.CustomerInfo;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface ICustomerInfoMapper {
    int deleteByPrimaryKey(String customerNo);

    int insert(CustomerInfo record);

    int insertSelective(CustomerInfo record);

    CustomerInfo selectByPrimaryKey(String customerNo);

    int updateByPrimaryKeySelective(CustomerInfo record);

    int updateByPrimaryKey(CustomerInfo record);

    CustomerInfo selectByUnionKeys(@Param("idType") String idType,
                                             @Param("idNo") String idNo,
                                             @Param("name") String name);

    int deleteCustomerInfo(@Param("idType") String idType,
                           @Param("idNo") String idNo,
                           @Param("name") String name);

//    @BatchCursorQuery("customer_info")
//    List<QueryCustomerRespDTO> getCustomerByDate(@Param("transDate") String transDate);
}